|
|
|
| |
|
|
|
|
Sets the filename and file type when printing a report to the printer |
|
|
|
| | |
|
|
|
|
Enables you to enter the UserId and connection information for a database |
|
|
|
| | |
|
|
|
|
Enables entry of the SelectionFormula and GroupSelectionFormula |
|
|
|
| | |
|
|
|
|
Sets Heading for a database report |
|
|
|
|
|
|
|
|
|
|
Figure 13.20.
Setting the report name and destination
on the controls Property Pages. |
|
|
|
|
|
|
|
|
If there is nothing else you want to have the report do, you can run the report and display it by executing a single line of code in your application. Although only the ReportFileName is required for a report, you may want to use several optional properties with the report. The first of these properties is the SelectionFormula property. This property enables you to limit the number of records that will be included in the report. The SelectionFormula property is similar to the Where clause of an SQL statement, but it uses its own particular format to enter the information. To specify the SelectionFormula, you must enclose the name of any recordset/field combination used in the formula in curly brackets. The final result is an expression that looks like the following: |
|
|
|
|
|
|
|
|
Of course, you can also use the AND or OR operators to create multiple expressions. |
|
|
|
|
|
|
|
|
Caution If you have entered a SelectionFormula when designing your report, any formulas you enter in the SelectionFormula property of the Crystal Reports control are added as additional filters. |
|
|
|
|
|
|